\defmodule {MathFunction}

This interface should be implemented by classes which represent univariate
mathematical functions. It is used to pass an arbitrary function of one
variable as argument to another function. For example, it is used
in \externalclass{umontreal.iro.lecuyer.util}{RootFinder} to find
 the zeros of a function.

\bigskip\hrule\bigskip

\begin{code}
\begin{hide}
/*
 * Class:        MathFunction
 * Description:
 * Environment:  Java
 * Software:     SSJ
 * Copyright (C) 2001  Pierre L'Ecuyer and Universite de Montreal
 * Organization: DIRO, Universite de Montreal
 * @author       Éric Buist
 * @since

 * SSJ is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License (GPL) as published by the
 * Free Software Foundation, either version 3 of the License, or
 * any later version.

 * SSJ is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * A copy of the GNU General Public License is available at
   <a href="http://www.gnu.org/licenses">GPL licence site</a>.
 */
\end{hide}
package umontreal.iro.lecuyer.functions;

public interface MathFunction\begin{hide} {\end{hide}
\end{code}
\begin{code}

   public double evaluate (double x);
\end{code}
\begin{tabb}
   Returns the value of the function evaluated at $x$.
\end{tabb}
\begin{htmlonly}
   \param{x}{value at which the function is evaluated}
   \return{function evaluated at \texttt{x}}
\end{htmlonly}
\begin{code}\begin{hide}
}\end{hide}
\end{code}
